import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import { catchError, map, tap, retry } from 'rxjs/operators';

/**
 * 访问后台服务.
 */
@Injectable({
    providedIn: 'root',
  })
export class BackEndService {

    prefix = 'http://localhost:8080';

    constructor(private http: HttpClient) {
    }

    public consoleHello(): Observable<Object> {
        return this.http.get(this.prefix + '/console/hello').pipe(retry(0));
    }


}
